#include<stdio.h>
#include<math.h>
#include<stdlib.h>

int main()
{
    float x;
    scanf("%f",&x);
    float a = log10(fabs(sin(x)-cos(x/2)+sqrt(x+168)));
    printf("%.4f",a);
    return 0;
}

